<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main2"/>
    <g:set var="entityName" value="${message(code: 'issue.label', default: 'issue')}"/>
    <title>查看客户反馈</title>
</head>

<body>
<div class="main-body">
    <div class="page-wrapper">
        <div class="page-header">
            <div class="page-header-title">
                <h4>查看客户反馈</h4>
            </div>

            <div class="page-header-breadcrumb">
                <ul class="breadcrumb-title">
                    <li class="breadcrumb-item">
                        <a href="/salesDashboard/index">
                            <i class="icofont icofont-home"></i>
                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <g:link controller="issue" action="index">客户反馈</g:link>
                    </li>
                    <li class="breadcrumb-item">查看客户反馈</li>
                </ul>
            </div>
        </div>

        <div class="page-body">
            <g:if test="${flash.message}">
                <div class="message alert alert-info" role="status">${flash.message}
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">×</span></button>
                </div>
            </g:if>
            <div class="card">
                <div class="card-header">
                    <h5>客户反馈</h5>

                    <div class="card-header-right">
                        <g:link action="edit" resource="${this.issue}" data-toggle="tooltip" data-placement="top" title="" data-original-title="编辑">
                            <i class="icofont icofont-edit"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>

                <div class="card-block">

                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">标题</label>

                        <div class="col-md-3">
                            <span class="cont">${this.issue?.subject}</span>
                        </div>
                        <label class="col-md-2 col-form-label">描述</label>

                        <div class="col-md-3">
                            <span class="cont">${this.issue?.description}</span>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">状态</label>

                        <div class="col-md-3">
                            <span class="cont">${this.issue?.status?.name}</span>
                        </div>
                        <label class="col-md-2 col-form-label">来源</label>

                        <div class="col-md-3">
                            <span class="cont">${this.issue?.origin?.name}</span>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">优先级</label>

                        <div class="col-md-3">
                            <span class="cont">${this.issue?.priority?.name}</span>
                        </div>
                        <label class="col-md-2 col-form-label">类型</label>

                        <div class="col-md-3">
                            <span class="cont">${this.issue?.type?.name}</span>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">原因</label>

                        <div class="col-md-3">
                            <span class="cont">${this.issue?.reason?.name}</span>
                        </div>
                        <label class="col-md-2 col-form-label">联系人</label>

                        <div class="col-md-3">
                            <span class="cont">${this.issue?.contact?.fullName}</span>
                        </div>
                    </div>
                    <div class="form-group row">

                        <label class="col-md-2 col-form-label">客户</label>

                        <div class="col-md-3">
                            <span class="cont">${this.issue?.account?.name}</span>
                        </div>
                    </div>
                </div>
            </div>
    
            <div class="card">
                <div class="card-header">
                    <h5>定制字段</h5>

                    <div class="card-header-right">
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/flexFieldInstanceTemplate"/>
            </div>
            <div class="card">
                <div class="card-header">
                    <h5>任务</h5>
                    <div class="card-header-right">
                        <g:link controller="activity" action="createTask" params="[issue: this.issue?.id]" data-toggle="tooltip" data-placement="top" title="" data-original-title="新增">
                        <i class="icofont icofont-plus"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/taskTemplate"/>
            </div>
            <div class="card">
                <div class="card-header">
                    <h5>附件</h5>
                    <div class="card-header-right">
                        <g:link controller="attachment" action="create" params="[issue: this.issue?.id]" data-toggle="tooltip" data-placement="top" title="" data-original-title="新增">
                            <i class="icofont icofont-plus"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/attachmentTemplate"/>
            </div>
            <div class="card">
                <div class="card-header">
                    <h5>团队</h5>
                    <div class="card-header-right">
                        <g:link controller="issueTeam" action="create" params="[issue: this.issue?.id]" data-toggle="tooltip" data-placement="top" title="" data-original-title="新增">
                        <i class="icofont icofont-plus"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/teamTemplate"/>
            </div>
        </div>
    </div>
</div>
</body>
</html>
